package com.eyealike.client;

public enum ServiceMapping
{
	UNINDEX( "index", "similarity-remove-index" ),
	REAL_TIME_INDEX( "index", "similarity-single-index" ),
	BATCH_INDEX_SUBMIT( "index", "similarity-batch-index" ),
	BATCH_INDEX_RESULTS( "index", "similarity-batch-index-results" ),
	
	ROI_POST( "roi", "service-roi-update" ),

	COLLECTION_PUT( "collection", "service-collection-manage" ),
	COLLECTION_DELETE( "collection", "service-collection-delete" ),
	COLLECTION_TREE( "collection", "service-collection-tree" ),

	CLASSIFY( "classifier", "classify" ),

	REAL_TIME_SEARCH( "search", "similarity-search" ),
	BATCH_SEARCH_SUBMIT( "search", "similarity-batch-search" ),
	BATCH_SEARCH_RESULT( "search", "similarity-batch-search-result" ),

	PRODUCT_SIMILARITY_SUBMIT( "product-similarity", "product-submit-job" ),
	PRODUCT_SIMILARITY_RESULTS( "product-similarity", "product-check-result-queue" ),

	COMPARE( "compare", "similarity-compare" ),
	MEDIA_CACHE_READ( "media-cache", "media-cache-read" );

	private final String endpoint;
	private final String serviceId;

	ServiceMapping( final String endpoint, final String serviceId )
	{
		this.endpoint = endpoint;
		this.serviceId = serviceId;
	}

	public String getEndpoint()
	{
		return endpoint;
	}

	public String getServiceId()
	{
		return serviceId;
	}
}
